package com.cz;

import java.util.Scanner;

import com.dl.DL;
import com.dom4j.YM;
import com.test.Test;
//充值功能的实现类
public class CZ {
	static Scanner in = new Scanner(System.in);

	public static void CZ() {
		if (DL.bj()) {
			System.out.println("请输入充值金额");
			if (in.hasNextInt()) {
				int num = in.nextInt();
				YM.ye(num);
				System.out.println("充值成功");
				Test.zjm();
			} else {
				System.out.println("请输入纯数字");
				in.nextLine();
				Test.zjm();
			}
		}
	}
}
